<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box1{
           width: 400px;
           height: 400px;
           background-color: red;
        }
        #box2{
            width: 200px;
            height: 200px;
            background-color: yellow;
            margin-left: 100px;
            padding-left: 50px;
        
        }
    </style>
</head>
<body>
    <div id="box1">
        <div id="box2">
            研究padding
        </div>
    </div>
</body>
</html>